package com.amumu.drama;

import org.mybatis.generator.api.dom.java.FullyQualifiedJavaType;
import org.mybatis.generator.internal.types.JavaTypeResolverDefaultImpl;

import java.sql.Types;

/**
 * @author sunzhuang
 * @date 2024/5/30 11:35
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc todo
 */

public class JavaTypeResolver extends JavaTypeResolverDefaultImpl {

    public JavaTypeResolver() {
        super();
        typeMap.put(Types.TINYINT, new JavaTypeResolverDefaultImpl
                .JdbcTypeInformation("TINYINT", new FullyQualifiedJavaType(Integer.class.getName())));

    }
}